package com.example.administrator.aidlapplication.binder;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

import com.example.administrator.aidlapplication.IOperation;

/**
 * Created by Administrator on 2016/10/12 0012.
 */

public class BinderClient implements ServiceConnection {
    public IOperation getmService() {
        return mService;
    }

    IOperation mService;
    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        //TODO 1链接服务端
        mService= IOperation.Stub.asInterface(service);

    }

    @Override
    public void onServiceDisconnected(ComponentName name) {

    }
}
